/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2020-2020.
 * Description: support rtos_swxn feature
 * Author: hejiani
 * Create: 2020-10-21
 */

#ifndef __RTOS_SWXN_H
#define __RTOS_SWXN_H

#include <linux/sched.h>

#define SWXN_ENFORCING 0
#define SWXN_PERMISSIVE 1
#define SWXN_DISABLE 2

extern int init_pid_swxn(struct task_struct *p);
extern int check_swxn(struct task_struct *p, unsigned long prot, const char *func_name);
extern unsigned int get_swxn_status(void);
extern unsigned int get_swxn_cap(void);
#endif
